.widget{
  width:600px;
  height:400px;
}

.widget mat-card-content{
  width: 100%;
}

.widget mat-toolbar-row{
  position:absolute;
  height:48px;
  width: 100%;
  z-index:4;
  background:unset;
  padding:0 8px;
  left:0;
  text-align:left;

  font-size: 1.5rem;
  line-height: 180%;
}

.xs.widget mat-toolbar-row.view-overview .controls,
.widget mat-toolbar-row.view-overview .primary-nav{
  color: #efefef; /* Don't use CSS var as text is over a dark image */
  font-family: var(--font-family-body);
}

.view-overview .primary-nav .card-title-text{
  /*display:none;*/
}

.primary-nav .card-title-text{
  font-size:1.5rem;
  font-weight: 500;
  display:inline-block;
  vertical-align:middle;
  position: relative;
  top: 2px;
}

.carousel{
  position:absolute;
  /*top:48px;*/
  width:300%;
  height:100%;
  /*height:calc(100% - 48px);*/
  /*background:var(--alt-bg2);*/
}

/*.carousel.lagg{
  width:400%;
}*/

.slide{
  /*position:absolute;
  top:48px;*/
  display:inline;
  width:100%;
  /*height:calc(100% - 96px);*/
  height:100%;
  /*border-left:solid 1px var(--bg1);*/
}

.slide .hidden{
  display:none;
}

.slide .left,
.slide .right{
  /*width:50%;*/
  height:100%;
  display:inline-block;
  padding:32px 0;
}

.slide.overview .right > div{
  width:100%;
}

.slide.overview .right{
  padding:0;
}

.slide.overview .left{
  /*background-color:var(--primary);*/
  background-color:#666;
  background-size:cover;
  background-image:url('assets/images/backgrounds/rj45.jpg');
  background-position-y:center;
  background-position-x:65%;
  background-blend-mode: overlay;
  color:#efefef;
  position:relative;
  padding:0;
}

.slide.overview .left .overlay{
  position:absolute;
  /*background:linear-gradient(180deg,rgba(0,0,0,0.65),rgba(0,0,0,0.5), rgba(0,0,0,0.15));*/
  width:100%;
  height:100%;
  padding:48px 0;
  text-shadow:0 0px 48px #000;
}

.slide .right{
  text-align:left;
  border-left:solid 1px rgba(0,0,0,0.1);
}
 
.slide .right li{
  font-size: 115%;
  padding: 6px;
  margin-left: 8px;
}

.slide.overview .left .left-content{
  display:table;
  height: calc(400px * 0.5);
}

.nic-name{
  font-size:250%;
  font-family: var(--font-family-body);
}

.link-state{ margin: 16px 0 8px; }

.link-state .icon-wrapper{
  display: inline-block;
  font-size: 175%;
  top: 3px;
  position: relative;
}

.nic-name .icon-wrapper{
  display: inline;
  font-size: 75%;
}

.nic-name.up .icon-wrapper,
.link-state.up .icon-wrapper,
.link-state.up .mat-icon{
  color: var(--green);
}

.nic-name.down .icon-wrapper,
.link-state.down .icon-wrapper,
.link-state.down .mat-icon{
  color: var(--red);
}

.link-state .mat-icon{
  font-size: 18px;
  position: relative;
  top: 2px;
}

.controls{
  position:absolute;
  top:0;
  right:16px;
  color: var(--fg2);
  /*font-weight:500;
  text-transform:capitalize;*/
}

.controls button{
  display:inline-block;
}

.carousel-nav{
  position:absolute;
  bottom:0;
  width:100%;
  height:48px;
  padding:6px;
  border-top:solid 1px var(--bg1);
  background:var(--bg2);
  text-align:left;
}

.carousel-nav .btn{
  width:12px;
  height:12px;
  border-radius:50%;
  display:inline-block;
  margin:0 4px;
  background-color:var(--fg1);
  opacity:0.5;
  cursor:pointer;
}

.carousel-nav .back-arrow.mat-icon{
  margin-top: -3px;
}

.carousel-nav .btn.active{
  opacity:1;
}

.nic-traffic{
  display:table;
  margin:4px 0 4px 8px;
}

.nic-traffic .tr{
  display:table-row;
}

.nic-traffic .td{
  display:table-cell;
  text-align:left;
}

.nic-traffic .td.label{
  text-align:right;
}

.stat{
  /*font-size: 250%;*/
}

.slide{
  overflow:auto;
}

.slide .mat-list-item.clickable{
  cursor:pointer;
}

.slide .mat-icon.next-slide{
  position:absolute;
  right:0;
}

.mat-list-base .mat-list-item{
  border-bottom:solid 1px rgba(0,0,0,0.1);
}

.mat-list-base {
}

.list-subheader{
  margin-top:48px;
  text-transform:capitalize;
  font-weight:700;
  padding:8px 8px 0 16px;
  text-align:left;
  font-size: 90%;
  color: var(--fg1);
}

/* NARROW SCREENS */
.xs.widget{
  width: 100%;
  height: calc(100vh - 96px);
  position: absolute;
  min-height:600px; 
}

.xs.widget .overview .right .list-subheader{
  margin-top: 0;
}

.xs.widget .nic-traffic{
  margin-left: 4px;
}
